
const state = {
  rs36Data: [],
}

const mutations = {
  SET_RS36_DATA: (state, data) => {
    state.rs36Data = data
  },
  ADD_RS36_DATA: (state, data) => {
    state.rs36Data = data
  },
}

const getters = {
  rs36Data: state => {
    return state.rs36Data
  }
}

const actions = {
  // 保存rs36的温度数据
  async saveRs36({ commit }, data) {
    commit('ADD_RS36_DATA', data)
  }
}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}